/**
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved. 
 */
package org.xlab.baseframework.domain.view;

import org.springframework.beans.BeanUtils;
import org.xlab.baseframework.domain.AbstractNormalDomainObject;
import org.xlab.baseframework.domain.INormalDomain;

/**
 * <p>
 * 视图实体类的一个抽象实现,一般视图实体可以集成该类
 * </p>
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 7, 2010
 * @since 1.0.0
 * 
 */
public abstract class AbstractNormalViewObject<T extends INormalDomain> extends
		AbstractNormalDomainObject implements IViewDomainObject<T>,
		INormalDomain {

	public static final String FIELD_S_CREATED_TIME = "s_createdTime";
	public static final String FIELD_S_LASTUPDATED_TIME = "s_lastUpdatedTime";
	
	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 6136727202186177274L;

	protected String s_createdTime;

	protected String s_lastUpdatedTime;

	/**
	 * <p>
	 * 空构造函数
	 * </p>
	 */
	public AbstractNormalViewObject() {
		super();
	}
	/**
	 * <p>
	 * 默认构造函数
	 * </p>
	 * 
	 * @param pojo
	 *            普通实体对象
	 */
	public AbstractNormalViewObject(T pojo) {
		BeanUtils.copyProperties(pojo, this);
	}

	/**
	 * @return the s_createdTime
	 */
	public String getS_createdTime() {
		return s_createdTime;
	}

	/**
	 * @return the s_lastUpdatedTime
	 */
	public String getS_lastUpdatedTime() {
		return s_lastUpdatedTime;
	}
}
